package cn.mayday.designmode.Proxy;

/**
 * @author Mayday05
 * @date 2021/1/5 20:02
 */
public class RealIImage implements IImage {

    private String fileName;

    public RealIImage(String fileName) {
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    @Override
    public void display() {
        System.out.println("Displaying " + fileName);
    }

    private void loadFromDisk(String fileName) {
        System.out.println("Loading " + fileName);
    }
}
